package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EBusinessOperation extends Object
    {
        public var __value:int;
        private static var __values:Array = [];
        public static const _EBusinessOperationApply:int = 1;
        public static const EBusinessOperationApply:EBusinessOperation = new EBusinessOperation(_EBusinessOperationApply);
        public static const _EBusinessOperationAgree:int = 2;
        public static const EBusinessOperationAgree:EBusinessOperation = new EBusinessOperation(_EBusinessOperationAgree);
        public static const _EBusinessOperationUpdateMoney:int = 3;
        public static const EBusinessOperationUpdateMoney:EBusinessOperation = new EBusinessOperation(_EBusinessOperationUpdateMoney);
        public static const _EBusinessOperationUpdateItem:int = 4;
        public static const EBusinessOperationUpdateItem:EBusinessOperation = new EBusinessOperation(_EBusinessOperationUpdateItem);
        public static const _EBusinessOperationLock:int = 5;
        public static const EBusinessOperationLock:EBusinessOperation = new EBusinessOperation(_EBusinessOperationLock);
        public static const _EBusinessOperationConfirm:int = 6;
        public static const EBusinessOperationConfirm:EBusinessOperation = new EBusinessOperation(_EBusinessOperationConfirm);
        public static const _EBusinessOperationCancel:int = 7;
        public static const EBusinessOperationCancel:EBusinessOperation = new EBusinessOperation(_EBusinessOperationCancel);
        public static const _EBusinessOperationError:int = 8;
        public static const EBusinessOperationError:EBusinessOperation = new EBusinessOperation(_EBusinessOperationError);
        public static const _EBusinessOperationDeduct:int = 9;
        public static const EBusinessOperationDeduct:EBusinessOperation = new EBusinessOperation(_EBusinessOperationDeduct);
        public static const _EBusinessOperationUnDeduct:int = 10;
        public static const EBusinessOperationUnDeduct:EBusinessOperation = new EBusinessOperation(_EBusinessOperationUnDeduct);
        public static const _EBusinessOperationAdd:int = 11;
        public static const EBusinessOperationAdd:EBusinessOperation = new EBusinessOperation(_EBusinessOperationAdd);
        public static const _EBusinessOperationEnd:int = 12;
        public static const EBusinessOperationEnd:EBusinessOperation = new EBusinessOperation(_EBusinessOperationEnd);
        public static const _EBusinessOperationReject:int = 13;
        public static const EBusinessOperationReject:EBusinessOperation = new EBusinessOperation(_EBusinessOperationReject);

        public function EBusinessOperation(param1:int)
        {
            this.__value = param1;
            __values[param1] = this;
            
        }

        public function value() : int
        {
            return this.__value;
        }

        public function equals(param1:Object) : Boolean
        {
            if (param1 == this)
            {
                return true;
            }
            var _loc_2:* = param1 as ERMICallModel;
            if (_loc_2 == null)
            {
                return false;
            }
            return this.__value == _loc_2.value();
        }

        public function hashCode() : int
        {
            return 5 * this.__value;
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            
        }

        public static function convert(param1:int) : EBusinessOperation
        {
            return __values[param1];
        }

        public static function __read(param1:SerializeStream) : EBusinessOperation
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 14)
            {
                throw new MarshalException();
            }
            return EBusinessOperation.convert(_loc_2);
        }

    }
}
